// ReadFromGame.cpp: implementation of the CReadFromGame class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "GameStart.h"
#include "ReadFromGame.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CReadFromGame* CReadFromGame::m_pInstance=NULL;
CReadFromGame::CReadFromGame()
{
	m_pGetAccFunc=NULL;
}

CReadFromGame::~CReadFromGame()
{
	m_pGetAccFunc=NULL;
	if(m_pInstance!=NULL)
	{
		delete m_pInstance;
		m_pInstance=NULL;
	}
}

CReadFromGame* CReadFromGame::CreateInstance()
{
	if(m_pInstance==NULL)
	{
		m_pInstance=new CReadFromGame();
	}
	return m_pInstance;
}

lpAccount CReadFromGame::GetAccNewInfo(lpAccount pAcc)
{
	if(pAcc==NULL) return NULL;
	return pAcc;
}